<template>
	<view>
		<view class="container ptb40">
			<!-- <view class="fs34 tc pb20 fwb">{{ info.name }}</view> -->
			<view class="plr30"><u-parse :content="info.content"></u-parse></view>
		</view>
	</view>
</template>

<script>
	const app = getApp();

	const functions = require('../../../utils/functions.js');
	export default {
		data() {
			return {
				type:1,
				info: null,
			}
		},
		onLoad: function(options) {
			this.type = options.type || 1;
		},
		onShow() {
			this.getAgreement();
		},
		methods: {
			getAgreement(){
				let that = this;
				if (this.type == 1) {
					
					functions.getAjaxData('/api/xiluhouse.article/article_detail', {id:54}, function (res) {
						that.info = res.data;
						
						uni.setNavigationBarTitle({
							title: that.info.name,
						});
					})
					
					
				} else {
					
					functions.getAjaxData('/api/xiluhouse.article/article_detail', {id:55}, function (res) {
						that.info = res.data;
						
						uni.setNavigationBarTitle({
							title: that.info.name,
						});
					})
					
				}
			},
		}
	}
</script>

<style>
	/* pages/agreement/agreement.wxss */
</style>
